package com.atguigu.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 逸尘风清
 * @Date: 2021/4/5
 * @Time: 17:16
 * 描述：
 */
@Configuration
@MapperScan(basePackages = "com.atguigu.yygh.hosp.mapper")
public class HospConfig {
    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
